const global = {
    state: {
        headerRouter:[],
        isMaskShow:'close', //0隐藏遮罩 1显示遮罩
    },
    actions: {
        set_headerRouter: async ({ commit },data) => {
            commit('SET_HeaderRouter',data)
        },
        set_isMaskShow:  ({ commit },data) => {
            commit('SET_IsMaskShow',data)
        },
    },
    mutations: {
        SET_HeaderRouter:async (state,value) =>{
            state.headerRouter = value;
        },
        SET_IsMaskShow: (state,value) =>{
            state.isMaskShow = value;
        },
    }
}

export default global;